﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace MVlog.Core
{
    /// <summary>
    /// 视频
    /// </summary>
    [Table("Video")]
    public class Video : Entity<long>, IFullAudited
    {
        /// <summary>
        /// 视频标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Url链接
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 时长
        /// </summary>
        public string TimeLength { get; set; }

        /// <summary>
        /// 评论数
        /// </summary>
        public int Commentnum { get; set; }

        /// <summary>
        /// 标签 (用逗号分割，存tagid)
        /// </summary>
        public string TagIds { get; set; }

        /// <summary>
        ///浏览数 
        /// </summary>
        public int Viewnum { get; set; }

        /// <summary>
        /// 上传人
        /// </summary>
        public long? CreatorUserId { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        public long? LastModifierUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        public long? DeleterUserId { get; set; }
        public DateTime? DeletionTime { get; set; }
        public bool IsDeleted { get; set; }
    }
}
